<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .btn-group {
            position: absolute;
            top: 10px;
        }
        a {
            text-decoration: none;
            padding: 5px 10px;
            color: white;
            background: orange;
        }
        input {
            padding: 5px 10px;
        }
    </style>
</head>
<body>
<canvas id="canvas">
    <img src="images/dog.png" alt="" id="logo" />
</canvas>
<div class="btn-group">
    <a href="javascript:useImage()" class="btn image-btn">使用图片</a>
    <a href="javascript:useText(document.querySelector('.btn-group input').value)" class="btn text-btn">使用文字</a>
    <input type="text" value="三十功名尘与土，八千里路云和月" />
</div>
</body>
<script>

</script>
</html>